#pragma once


#include <string>
using namespace std;

class ClassField
{
  private:
    std::string m_name;   // 字段名
    std::string m_type;   // 字段类型
    size_t      m_offset; // 偏移量

  public:
    ClassField() : m_name(""), m_type(""), m_offset(0) {}
    ClassField(const std::string& name, const std::string& type, size_t offset)
        : m_name(name), m_type(type), m_offset(offset)
    {
    }
    ~ClassField() {}

  public:
    const string& name()
    {
        return m_name;
    }

    const string& type()
    {
        return m_type;
    }

    const size_t offset()
    {
        return m_offset;
    }
};